<?php

use swap\visitor;

class my_user_info_helper extends swap\helper {
	
	public static function run() {
		$email = visitor::get_role_var('user', 'email');
		self::set('email', $email);
		
		$user_id = visitor::get_role_id('user');
		$user_info = user_info_model::get_one(array('user_id' => $user_id));
		self::set('user_info', $user_info);
		
		self::render();
	}
	
}